package com.liqi.office.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.liqi.common.annotation.DataSource;
import com.liqi.common.config.Sm4TypeHandler;
import com.liqi.common.enums.DataSourceType;
import com.liqi.monitor.mapper.DvWorkOrderMapper;
import com.liqi.office.domain.TRunService;
import com.liqi.office.domain.TRunServiceRequest;
import com.liqi.office.domain.TRunServiceRequestDto;
import com.liqi.office.mapper.TRunServiceRequestMapper;
import com.liqi.office.service.TRunServiceRequestService;

@Service
public class TRunServiceRequsetServiceImpl implements TRunServiceRequestService{

    @Autowired
    private TRunServiceRequestMapper tRunServiceRequestMapper;
	
	@Override
	@DataSource(DataSourceType.SLAVE)
	public List<TRunServiceRequest> getServiceRequestBack(TRunServiceRequestDto tRunServiceRequestDto) {
		return tRunServiceRequestMapper.getServiceRequestBack(tRunServiceRequestDto, Sm4TypeHandler.KEY);
	}

	@Override
	@DataSource(DataSourceType.SLAVE)
	public List<TRunServiceRequest> getServiceRequestStatistics(TRunServiceRequest tRunServiceRequest) {
		return tRunServiceRequestMapper.getServiceRequestStatistics(tRunServiceRequest);
	}

}
